<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>后台-图书列表</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/admin.css') }}">
</head>
<body class="docs">
@if (Auth::check()) 

<div class="search" style="max-width:60%">
    <form class="bs-example bs-example-form" role="form" action="{{ asset('admin/abooklist') }}" method="get">
    <div class="row">
        <div class="col-lg-12">
            <div class="input-group">
                <input type="text" value="" maxlength="60" name="search_text" id="search" placeholder="书名、作者、ISBN" class="form-control">
                <span class="input-group-btn">
                <button type="submit" class="btn btn-default">找书</button>
                 </span>
            </div>
        </div>
    </div>
    </form>
</div>

<table class="table table-hover">
   <caption>出版社/出版公司：</caption>
   <thead>
      <tr>
         <th>ID</th>
         <th>赠书活动</th>
         <th>发布时间</th>
         <th></th>
         <th></th>
      </tr>
   </thead>
   <tbody>
    @foreach ($chubanzengshulists as $chubanzengshulist)
      <tr>
         <td>{{$chubanzengshulist->id}}</td>
         <td><a href="{{url('hangye/chubanzengshuinfo/'.$chubanzengshulist->id)}}" target="_blank">{{$chubanzengshulist->biaoti}}</a></td>
         <td>{{date('Y-m-d H:i',$chubanzengshulist->add_time)}}</td>        
         <td><a href="{{url('admin/chubaneditzengshulist/'.$chubanzengshulist->id)}}">编辑</a></td>
         <td><a href="{{url('admin/chubaneditzengshulist_del/'.$chubanzengshulist->id)}}" onclick="javascript:return p_del()">删除</a></td>
      </tr>
    @endforeach
   </tbody>
</table>
<div class="fenye">{!! $chubanzengshulists->render() !!}</div>
@else
没有登录
@endif

<script language="javascript">
function p_del() {var msg="您真的确定要删除吗？\n\n请确认！";if (confirm(msg)==true){
return true;}else{return false;}}
</script>

</body>
</html>